package com.ruoyi.mes.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工厂对象 mes_factory
 * 
 * @author jhaosui
 * @date 2020-09-21
 */
public class MesFactory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 工厂编号 */
    @Excel(name = "工厂编号")
    private String factorySn;

    /** 工厂名 */
    @Excel(name = "工厂名")
    private String factoryName;

    /** 所属公司 */
    @Excel(name = "所属公司")
    private Long companyId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFactorySn(String factorySn) 
    {
        this.factorySn = factorySn;
    }

    public String getFactorySn() 
    {
        return factorySn;
    }
    public void setFactoryName(String factoryName) 
    {
        this.factoryName = factoryName;
    }

    public String getFactoryName() 
    {
        return factoryName;
    }
    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("factorySn", getFactorySn())
            .append("factoryName", getFactoryName())
            .append("companyId", getCompanyId())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
